package com.xiaoxing.welcome.mvp.fragment;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;

import com.xiaoxing.welcome.R;
import com.xiaoxing.welcome.mvp.ui.GuideActivity;


/**
 * 描述：
 * 作者：xiaoxing on 17/4/20 13:19
 * 邮箱：2235445233@qq.com
 */
public class Fragment_Entry extends Fragment {


    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {

        View view = inflater.inflate(R.layout.fragment_entry, container, false);

        FrameLayout fl_entry = view.findViewById(R.id.fl_entry);
        fl_entry.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                GuideActivity activity = (GuideActivity) getActivity();
                activity.entryApp();
            }
        });

        return view;
    }


}
